//
//  User.h
//  PDA
//
//  Created by 吕晶 on 2020/1/8.
//  Copyright © 2020 吕晶. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface User : NSObject

/**
 *  用户单例
 */
+(User *)shareSingleton;

/**
 用户单例销毁
 */
+ (void)userRelease;

//登录成功
+ (void)loginSuccess:(NSString *)token;
+ (void)loginSuccessData:(id)data;
//登出成功
+ (void)logoutSuccess;
//判断用户是否登录
+ (BOOL)isLogin;
//获取用户token
+ (NSString *)getUserToken;

@end

NS_ASSUME_NONNULL_END
